<template>
    <div id="joke">
        <ul>
            <li v-for="item in joke" :key="item.hashId">
            {{item.content}}</li>
        </ul>
        <van-pagination
        v-model="currentPage"
        :total-items="25"
        :items-per-page="3"
        @change="chym()"
/>
    </div>
</template>

<script>
import '@/assets/tmp.js'
export default {
  data () {
    return {
      joke: [],
      currentPage: 1
    }
  },
  created () {
    var stmp = timest()
    this.axios.get('/api2?key=b4e245404202a55e4a7564c10ee0261f&page=1&pagesize=3&sort=desc&time={stmp}')
      .then(res => {
        this.joke = this.data.result.data
      })
  }
}
</script>

<style>

</style>
